package com.cmc.cloud.cmclink.doc.api.document;

import com.cmc.cloud.cmclink.doc.api.document.rep.VesselOffHireMaintenanceRespDto;
import com.cmc.cloud.cmclink.doc.api.document.req.VesselOffHireMaintenanceReqDto;
import com.cmc.cloud.cmclink.doc.service.VesselOffHireMaintenanceService;
import com.cmes.framework.common.pojo.CommonResult;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 特种货整船禁接查询
 *
 * @author lzp
 */
@RestController
@Validated
public class VesselOffHireMaintenanceApiImpl implements VesselOffHireMaintenanceApi {

    @Resource
    private VesselOffHireMaintenanceService vesselOffHireMaintenanceService;

    @Override
    public CommonResult<List<VesselOffHireMaintenanceRespDto>> queryVesselOffHireMaintenance(VesselOffHireMaintenanceReqDto vesselOffHireMaintenanceReqDto) {
        return CommonResult.success(vesselOffHireMaintenanceService.queryVesselOffHireMaintenance(vesselOffHireMaintenanceReqDto));
    }
}
